]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
search-display: Fix getDragActorSource()/getDragActor()
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 29 Mar 2011 11:32:53 +0000 (13:32 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 2 Apr 2011 09:13:45 +0000 (11:13 +0200)
The 'icon' property in search results' meta info has been replaced
by a 'createIcon' property, adjust to this change.

https://bugzilla.gnome.org/show_bug.cgi?id=645990

js/ui/searchDisplay.js

index f3d463a941a8767b7a55847eb3277bcd5e65bdbe..ffe9fa4824612d80be32706119b62fadd4602466 100644 (file)
@@ -77,11 +77,12 @@ SearchResult.prototype = {
     },
 
     getDragActorSource: function() {
-        return this.metaInfo['icon'];
+        // not exactly right, but alignment problems are hard to notice
+        return this._content;
     },
 
     getDragActor: function(stageX, stageY) {
-        return new Clutter.Clone({ source: this.metaInfo['icon'] });
+        return this.metaInfo['createIcon'](Main.overview.dash.iconSize);
     },
 
     shellWorkspaceLaunch: function(params) {